//
//  MLWLTPlayerView.h
//  KITCHEN_STORIES
//
//  Created by 孟令通 on 16/6/17.
//  Copyright © 2016年 MLW. All rights reserved.
//

#import "MLWBaseView.h"

#import <AVFoundation/AVFoundation.h>

#import <AVKit/AVKit.h>

#import <MediaPlayer/MediaPlayer.h>

@protocol MLWPlayerDelegate <NSObject>

-(void)playerGoBackBtn;

@end

typedef NS_ENUM(NSInteger, MLWPlayerLayerGravity) {
    MLWPlayerLayerGravityResize,           // 非均匀模式
    MLWPlayerLayerGravityResizeAspect,     // 等比例填充
    MLWPlayerLayerGravityResizeAspectFill  // 等比例填充(维度会被裁剪)
};

@interface MLWLTPlayerView : MLWBaseView

@property (nonatomic, assign) id<MLWPlayerDelegate> MLWDelegate;

/** 视频连接 */
@property (nonatomic, copy) NSString *url;

@property (nonatomic, assign) MLWPlayerLayerGravity playerLayerGravity;

@end
